#include"threadpool.hpp"
#include"task.hpp"
#include<memory>
#include<iostream>
#include<functional>

using task_t=taskmodule::task_t;
int main()
{
    // CONVERT_FILE_LOG();
    CONVERT_CONSOLE_LOG();
    std::unique_ptr<threadpoolmodule::threadpool<task_t>> tsptr=std::make_unique<threadpoolmodule::threadpool<task_t>>();
    tsptr->start();

    while(true){
        tsptr->equeue(taskmodule::push);
        sleep(1);
    }

    tsptr->stop();

    tsptr->wait();

    return 0;   
}